package com.cr.front.news.dao.repository;

import com.cr.front.news.pojo.entity.News;
import com.cr.front.news.pojo.query.SearchParam;
import com.cr.front.news.pojo.vo.NewsByCategoryIdVO;
import com.cr.front.news.pojo.vo.NewsByTimeVO;
import com.cr.front.news.pojo.vo.NewsByViewsVO;
import com.cr.front.news.pojo.vo.NewsVO;

import java.util.List;

public interface NewsRepository {
    List<NewsByTimeVO> getNewsByTimeRank();

    NewsVO getDetailNewsById(Integer id);


    List<NewsByViewsVO> getNewsByViews();

    List<News> getNewsByCategoryId(SearchParam searchParam);

    List<News> getCacheNews();
}
